package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.SourceBaseCustomItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 自定义档案项
 *
 * @author
 * @email
 * @date 2023-02-03 10:42:08
 */
@Mapper
public interface SourceBaseCustomItemDao {

    int save(SourceBaseCustomItem sourceBaseCustomItem);

    int deleteAll();

    int deleteByCompanyIdAndKjnd(@Param("companyId") String companyId, @Param("kjnd")Integer kjnd);

    SourceBaseCustomItem findById(String id);

    List<SourceBaseCustomItem> findAll(Map<String, Object> params);

    SourceBaseCustomItem findByCode(Map<String, Object> params);

    SourceBaseCustomItem findByName(Map<String, Object> params);

}
